package com.allwees.bs.module.mms.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.allwees.bs.module.base.service.BoService;
import com.allwees.bs.module.mms.entity.Retailer;
import com.allwees.bs.module.mms.req.MerchantDisableReq;
import com.allwees.bs.module.mms.req.MerchantEnableReq;
import com.allwees.bs.module.mms.req.query.RetailerQueryReq;

/**
 *
 *
 * @author yangylsky
 * @since 2019-12-03
 *
 */
public interface RetailerService extends BoService<Retailer> {
	/**
	 * 根据RetailerApply创建Retailer
	 *
	 * @param retailerApplyUuid
	 * @return
	 */
	Retailer createRetailer(String retailerApplyUuid);

	/**
	 * 禁用商户
	 * @param req
	 * @return
	 */
	int disableRetailers(MerchantDisableReq req);

	/**
	 * 启用商户
	 * @param req
	 * @return
	 */
	int enableRetailers(MerchantEnableReq req);

	Page<Retailer> selectPage(Page<Retailer> page, RetailerQueryReq req);
}
